package com.yytek.tddb.api.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ClassDescription: 查询所需入参对象
 */
@Data
@ApiModel("查询时序所需参数实体")
public class SelectDto {


    @ApiModelProperty("数据库名称")
    @NotBlank(message = "invalid operation: tableName can not be empty")
    private String dataBaseName;

    @ApiModelProperty("子表名称")
    @NotBlank(message = "invalid operation: tableName can not be empty")
    private String tableName;

    @ApiModelProperty("查询条件")
    private String fieldName;

    @ApiModelProperty("创建开始时间")
    private String startTime;

    @ApiModelProperty("创建结束时间")
    private String endTime;

    @ApiModelProperty("分组sql")
    private String groupBy;

    @ApiModelProperty("排序sql")
    private String orderBy;

    @ApiModelProperty("限制条数,分页查询")
    private String limit;

    @ApiModelProperty("开始条数,分页查询")
    private String offset;


}
